#!/usr/bin/env sh

if git diff --cached --name-only | grep "^client/" >/dev/null; then
    cd client || exit
    yarn install
    yarn format && yarn syntax
else
    printf "No changes in the client directory. Skipping pre-commit hook."
fi
